﻿<UserControl x:Class="Meechisoft.TFS.BranchIndicator.BranchSettingsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
            xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="6*"/>
            <ColumnDefinition Width="3*"/>
            <ColumnDefinition Width="3*"/>
            <ColumnDefinition Width="3*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <TextBlock Grid.Column="0" VerticalAlignment="Center" Padding="5">Name</TextBlock>
        <TextBlock Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"  Padding="5">Title Bar</TextBlock>
        <TextBlock Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center"  Padding="5">Title Font</TextBlock>
        <TextBlock Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="5">Gradient</TextBlock>
        <ItemsControl Grid.Row="1" Grid.ColumnSpan="5" ItemsSource="{Binding Branches}">
            <ItemsControl.ItemTemplate>
                <DataTemplate>

                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="6*"/>
                            <ColumnDefinition Width="3*"/>
                            <ColumnDefinition Width="3*"/>
                            <ColumnDefinition Width="3*"/>
                        </Grid.ColumnDefinitions>

                        <TextBlock Grid.Column="0"  VerticalAlignment="Center"  Padding="5" Text="{Binding Name}"/>
                        <xctk:ColorPicker Grid.Column="1" Padding="2" Margin="3" SelectedColor="{Binding PrimaryColor}"/>
                        <xctk:ColorPicker Grid.Column="2" Padding="2" Margin="3" SelectedColor="{Binding SecondaryColor}"/>
                        <CheckBox Grid.Column="3" HorizontalAlignment="Center" Width="20"  VerticalAlignment="Center"  IsChecked="{Binding Gradient}"/>
                    </Grid>

                </DataTemplate>
            </ItemsControl.ItemTemplate>

        </ItemsControl>
    </Grid>
</UserControl>
